<?php
/**
 * features:
 * 	- renders png thumbs with transparent mirror
 *
 * PHP 5
 *
 * MIT License
 * Copyright (c) 2009 Christian Krause
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * @category   library
 * @package    iLivGallery
 * @author     Original Author <chris@christiankrause.de>
 * @copyright  2009 Christian Krause
 * @license    MIT
 * @link       http://code.google.com/p/ilivgallery/downloads/
 * @since      File available since Release 0.5
 */

	error_reporting(E_ALL ^ E_NOTICE);
	require_once 'lib/iLiv/MyGallery.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>iLivGallery Beta</title>
    <script type="text/javascript" src="assets/js/imageflow_hacked.js"></script>
	<script type="text/javascript" src="assets/js/jquery-1.3.2.min.js"></script>
	<script type="text/javascript" src="assets/js/jquery.fancybox/jquery.fancybox-1.2.1.pack.js"></script>

    <style type="text/css" title="currentStyle">
    	@import "./assets/css/iliv-gallery.css";
        @import "./assets/js/jquery.fancybox/jquery.fancybox.css";
    </style>
</head>

<body>
<div id="layout">
<div id="stage">
		<h1>iLivGallery</h1>

		<div class="moduleContainer">

			<div class="moduleTop">Demo Gallery</div>
			<div class="moduleContent" id="stageSpot">
			<div id="captions"></div>
					<div id="loading">
						<b>Loading images</b><br/>
						<img src="loading.gif" width="208" height="13" alt="loading" />
					</div>
					<div id="images">
					<?php
						iLiv_StaticGallery::getSingleton()->simpleImageStack();
					?>
					</div>
				<div id="scrollbar">
					<div id="slider"></div>
				</div>
			</div>

		</div>

		<div style="display: none; clear:both; color: #fff; overflow: scroll; background: #000"><?php #$debugger->debug(); ?></div>

		<h2>Features</h2>
		<ul>
			<li>MultiStage Gallery</li>
			<li>Automatic thumbnails with cache</li>
			<li>Unlimited Downlad/Lightbox scale downs</li>
			<li>Tranparent mirrors for thumbnails</li>
		</ul>

		<h2>Demos</h2>

		<p>
		<?php
			$size = 25;

			for ( $i=0; $i<4; $i++ )
			{
				echo iLiv_StaticGallery::getSingleton()->getImageTag('DSC_0053.jpg', $size = ($size*2));
			}
		?>
		</p>
		
		<p>
		<?php
			$size = 800;

			for ( $i=0; $i<4; $i++ )
			{
				echo iLiv_StaticGallery::getSingleton()->getImageTag('DSC_0017.jpg', $size = ($size/2), true);
			}
		?>
		</p>

		<h2>Formats</h2>
		<p>Read:</p>
		<ul>
			<li>Jpeg</li>
			<li>Pdf (not finished right now) needs Ghostscript and ImageMagick</li>
		</ul>

		<p>Write:</p>
		<ul>
			<li>Png</li>
		</ul>

		<h2>About the Project</h2>
		<ul>
			<li>PHP 5 OOP</li>
			<li>Workcounter: 65h</li>
		</ul>

		<h2>MIT License</h2>
		<p>
		Copyright (c) 2009 Christian Krause
		</p>
		<p>
		Permission is hereby granted, free of charge, to any person obtaining a copy
		of this software and associated documentation files (the "Software"), to deal
		in the Software without restriction, including without limitation the rights
		to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
		copies of the Software, and to permit persons to whom the Software is
		furnished to do so, subject to the following conditions:
		</p>
		<p>
		THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
		IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
		FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
		AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
		LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
		OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
		THE SOFTWARE.
		</p>
	</div>
</div>
</body>
</html>